package concur;

public class Consumer extends Thread{
	TicketManager tm;

	@Override
	public void run() {
		while(true) {
			try {
				Thread.sleep(500);
			}catch (InterruptedException e) {
				e.printStackTrace();
			}
			tm.consume();
		}
	}

	public Consumer(TicketManager tm) {
		super();
		this.tm = tm;
	}
	

}
